package com.example.day22.ex07;

public class ConverterDemo{
    public static void main(String[] args) {
        useConverter(s->Integer.parseInt(s));
        useConverter(Integer::parseInt);
    }
    private static void useConverter(Converter converter) {
        int i = converter.convert("123");
        System.out.println(i);
    }
}
